﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<DR.WebUI.Models.Account.LogOnModel>" %>

<asp:Content ID="loginTitle" ContentPlaceHolderID="TitleContent" runat="server">
    Log On
</asp:Content>

<asp:Content ID="loginContent" ContentPlaceHolderID="MainContent" runat="server">
     <h3>Welcome to Developer Report System</h3>
          <% using (Html.BeginForm("LogOn", "Account", new { ReturnUrl = Request.QueryString["ReturnUrl"] }))
             { %>
        <%: Html.ValidationSummary(true, "Login was unsuccessful. Please correct the errors and try again.")%>
        <div id="login-form"> 
            <div style="margin:0; padding:0; display:inline;">
                <table style="width:400px;"> 
                    <tr> 
                        <td align="right">
                            <%: Html.LabelFor(m => m.UserName)%>
                        </td> 
                        <td align="left">
                            <%: Html.TextBoxFor(m => m.UserName, new { @class = "logOnTextBox" })%>
                            <%: Html.ValidationMessageFor(m => m.UserName)%>
                        </td> 
                    </tr> 
                    <tr> 
                        <td align="right">
                            <%: Html.LabelFor(m => m.Password)%>
                        </td> 
                        <td align="left">
                            <%: Html.PasswordFor(m => m.Password, new { @class = "logOnTextBox" })%>
                            <%: Html.ValidationMessageFor(m => m.Password)%>
                        </td> 
                    </tr> 
 
                    <tr> 
                        <td></td> 
                        <td align="left"> 
        
                        </td> 
                    </tr> 
                    <tr> 
                        <td align="left"> 
                                
                        </td> 
                        <td align="right"> 
                            <input type="submit" value="Log On" />
                        </td> 
                    </tr> 
                </table>    
            </div> 
        </div>
   <% } %>
</asp:Content>
